package dav.mobile.garuda.states.game;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.World;

//Game object with physics body
public abstract class PhysicsObject extends GameObject {
	//Physics body
	protected Body	m_Body;
	
	//Default Constructor
	protected PhysicsObject(int x, int y, TextureRegion texture, World m_World) {
		//Super
		super(x, y, texture);
		
		//Create body
		CreatePhysicsBody(m_World);
	}

	//Getter-Setter
	public Body getPhysicsBody()	{ return m_Body;}

	//Abstract attribute
	protected abstract void CreatePhysicsBody(World m_World);
}
